<!--
 * @Description: 
 * @Author: xuechengwu
 * @Email: 516385822@qq.com
 * @Date: 2022-02-09 09:57:34
 * @LastEditTime: 2022-02-09 15:53:37
 * @LastEditors: xuechengwu
-->
<template>
  <span @click="eventEmit">{{text}}</span>
</template>

<script>
export default {
    props: {
        text: {
            type: String,
            default: '',
        },
    },
    methods: {
        eventEmit() {
            this.$emit('event', {
                name: 'click',
                data: this.text,
            });
        }
    }
}
</script>

<style scoped>

</style>